Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Cannot validate form when keys of collection in data are non consecutive #3828

Closed
wants to merge 1 commit into from
Closed

Cannot validate form when keys of collection in data are non consecutive #3828

wants to merge 1 commit into from

Conversation

zluiten
Copy link
Contributor

@zluiten zluiten commented Feb 20, 2013

As the InputFilter tests the keys of the validationGroup to the keys of the data, the prepareValidationGroup should in case of a Collection use the keys of the corresponding data when multiplying that validationGroup to match the amount of Collection items in data.
Most of the time the keys of a collection inside data are consecutive, but not per se. The test attached to this PR shows this more clearly.

@ghost ghost assigned weierophinney Feb 20, 2013
weierophinney added a commit that referenced this pull request Feb 20, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants